import request from '.././request/index'

/**
 * 登录
 * @param data
 */
export function reqLogin(data) {
    return request({
        url: '/systemApi/login',
        method: 'post',
        data
    })
}

/**
 * 根据token获取用户信息
 * @param token
 */
export function getInfo(token) {
    return request({
        url: '/systemApi/info',
        method: 'get',
        params: {token}
    })
}

/**
 * 退出登录
 */
export function reqLogout(data) {
    return request({
        url: '/systemApi/logout',
        method: 'post',
        data,
    })
}

/**
 * 验证 token
 */
export function reqVerifyAuthToken(data) {
    console.log(data);
    return request({
        url: '/systemApi/verifyAuthToken',
        method: 'post',
        data,
    })
}


